package com.xiaolanshu.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.util.Date;

@Data
public class BasePojo {
    @TableField(fill = FieldFill.INSERT)//自动填充
    private Date created;
    @TableField(fill = FieldFill.UPDATE)
    private Date updated;
}
